/*
* @Author: Administrator
* @Date:   2018-01-03 15:24:06
* @Last Modified by:   Administrator
* @Last Modified time: 2018-01-15 11:53:48
*/

'use strict';
require('./index.css');
require('page/common/nav/index.js');
require('page/common/header/index.js');
require('util/slider/index.js'); //引用轮播插件



var navSide         = require('page/common/nav-side/index.js');
var _mm             = require('util/mm.js');
var templateBanner  =require('./index.string');

$(function() { //插件的引用
	//渲染bannerTemplateHtml页面
	var bannerHtml	=_mm.renderHtml(templateBanner);
	$('.banner-con').html(bannerHtml);
	//初始化banner
    var $slider		=$('.banner').unslider({
    	dots: true,
    });
    //事件的绑定
     $('.banner-con .banner-arrow').click(function(){
        var forward = $(this).hasClass('prev') ? 'prev' : 'next';
        $slider.data('unslider')[forward]();
    });

});

$(function() {
   
});